/**
 * copyright(c) 2013 www.jiongshibaoliao.com, All Rights Reserved.
 * project: jiongshibaoliao 
 * author: 曾帅
 * date: 2014-1-8 下午02:41:46
 * version: v1.0
 */

package com.jiongshibaoliao.model;

import java.util.Date;

import com.jiongshibaoliao.model.enums.ActiveStatus;
import com.jiongshibaoliao.model.enums.Sex;
import com.jiongshibaoliao.model.enums.SingupSource;
import com.jiongshibaoliao.model.enums.UserType;

/**
 * @project jiongshibaoliao
 * @author 曾帅
 * @version 1.0
 * @date 2014-1-8 下午02:41:46
 */

public class User extends BaseModel {

	private String loginName;

	private String nickName;

	private String passWord;

	private String email;

	private String mobile;

	private Date birthday;

	private Sex sex;
	
	private String headImgPath;

	private UserType userType;

	private ActiveStatus activeStatus;

	private SingupSource singupSource;

	private Date createDate;

	private Date lastLoginDate;

	private long loginTimes;

	public User() {
	}

	public User(String loginName, String nickName, String passWord,
			String email, String mobile, Date birthday, Sex sex,
			String headImgPath, UserType userType, ActiveStatus activeStatus,
			SingupSource singupSource, Date createDate, Date lastLoginDate,
			long loginTimes) {
		this.loginName = loginName;
		this.nickName = nickName;
		this.passWord = passWord;
		this.email = email;
		this.mobile = mobile;
		this.birthday = birthday;
		this.sex = sex;
		this.headImgPath = headImgPath;
		this.userType = userType;
		this.activeStatus = activeStatus;
		this.singupSource = singupSource;
		this.createDate = createDate;
		this.lastLoginDate = lastLoginDate;
		this.loginTimes = loginTimes;
	}
	
	@Override
	public String toString() {
		return "User [activeStatus=" + activeStatus + ", birthday=" + birthday
				+ ", createDate=" + createDate + ", email=" + email
				+ ", headImgPath=" + headImgPath + ", lastLoginDate="
				+ lastLoginDate + ", loginName=" + loginName + ", loginTimes="
				+ loginTimes + ", mobile=" + mobile + ", nickName=" + nickName
				+ ", passWord=" + passWord + ", sex=" + sex + ", singupSource="
				+ singupSource + ", userType=" + userType + "]";
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public String getHeadImgPath() {
		return headImgPath;
	}

	public void setHeadImgPath(String headImgPath) {
		this.headImgPath = headImgPath;
	}

	public UserType getUserType() {
		return userType;
	}

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	public ActiveStatus getActiveStatus() {
		return activeStatus;
	}

	public void setActiveStatus(ActiveStatus activeStatus) {
		this.activeStatus = activeStatus;
	}

	public SingupSource getSingupSource() {
		return singupSource;
	}

	public void setSingupSource(SingupSource singupSource) {
		this.singupSource = singupSource;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	public long getLoginTimes() {
		return loginTimes;
	}

	public void setLoginTimes(long loginTimes) {
		this.loginTimes = loginTimes;
	}
}
